using System;
using System.Windows.Forms;

namespace WebCamCapture
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            CaptureDevice selected = ChooseCamera.SelectCamera();

            if (null != selected)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new CatureForm(selected));
            }
        }
    }
}